package com.unionftech.common.permissions.tip.bean;

import com.unionftech.common.R;

public class DialogStyleInfo {
    public static final int USE_DEFAULT_STYLE = -1;
    private final int dialogLayoutId;
    private final int itemLayoutId;

    public DialogStyleInfo() {
        this(USE_DEFAULT_STYLE, USE_DEFAULT_STYLE);
    }

    public DialogStyleInfo(int dialogLayoutId, int itemLayoutId) {
        if (dialogLayoutId == USE_DEFAULT_STYLE) {
            this.dialogLayoutId = R.layout.default_permission_tip_dialog;
        } else {
            this.dialogLayoutId = dialogLayoutId;
        }
        if (itemLayoutId == USE_DEFAULT_STYLE) {
            this.itemLayoutId = R.layout.default_permission_tip_dialog_item;
        } else {
            this.itemLayoutId = itemLayoutId;
        }
    }

    public int getDialogLayoutId() {
        return dialogLayoutId;
    }

    public int getItemLayoutId() {
        return itemLayoutId;
    }
}
